package edu.uis.project.frankszoo.model.event;

import java.util.EventObject;
import java.util.List;

import edu.uis.project.frankszoo.model.game.GamePlayer;

/**
 * This class extends the EventObject and represents the GamestartedEvent
 */
public class GameStartedEvent extends EventObject {

	private static final long serialVersionUID = -5887249609358657044L;
	
	List<GamePlayer> players;// Players in the game

	/**
	 * This is the constructor for the GameStartedEvent
	 * 
	 * @param source
	 *            component that originated the event
	 * @param players
	 *            list of players in the game
	 */
	public GameStartedEvent(Object source, List<GamePlayer> players) {
		super(source);
		this.players = players;
	}

	/**
	 * This operation returns the list of players in the game
	 * 
	 * @return list of the players.
	 */
	public List<GamePlayer> getPlayers() {
		return players;
	}

}
